<div>
  <form name="lineactivity" class="form-horizontal form-validation">
    <div ng-repeat="ele in model">

      <div ng-switch="ele.id">

          <!-- xxxxx -->
          <div ng-switch-when="add">
              <div class="form-group ">
                 <button class="btn m-b-xs w-xs btn-success btn-rounded pull-right" style="margin: 3px" ng-click="adda(1)">添加一项</button>
              </div>
              <div ng-repeat="item in arr">
            <div class="form-group" >
              <label class="col-sm-2 control-label" 
              for={{ele.id}}>大标题
              </label>
              <div class="col-sm-10">
                  <label 
                  class="i-checks  checkbox-inline">
                    <input type="radio" value="0" name="aaa{{$index}}"
                    ng-checked="ritem.firstname == item.value"
                    ng-model="item.firstname"
                    >
                    <i></i>
                    酒店介绍
                  </label>
                   <label 
                  class="i-checks  checkbox-inline">
                    <input type="radio" value="1" name="aaa{{$index}}"
                    ng-checked="item.firstname == item.value"
                    ng-model="item.firstname"
                    >
                    <i></i>
                    景点介绍
                  </label>
                   <label 
                  class="i-checks  checkbox-inline">
                    <input type="radio" value="2" name="aaa{{$index}}"
                    ng-checked="item.firstname == item.value"
                    ng-model="item.firstname"
                    >
                    <i></i>
                    美食推荐
                  </label>
                   <label 
                  class="i-checks  checkbox-inline">
                    <input type="radio" value="3" name="aaa{{$index}}"
                    ng-checked="item.firstname == item.value"
                    ng-model="item.firstname"
                    >
                    <i></i>
                    交通信息
                  </label>
                   <label 
                  class="i-checks  checkbox-inline">
                    <input type="radio" value="4" name="aaa{{$index}}"
                    ng-checked="item.firstname == item.value"
                    ng-model="item.firstname"
                    >
                    <i></i>
                    自定义
                  </label>

              </div>
            </div>
             <div class="form-group">
              <label class="col-sm-2 control-label" 
              for={{ele.id}}>小标题
              </label>
              <div class="col-sm-10">                   
                  <input type="text" class="form-control" 
                  ng-model="item.secondname" 
                  ng-required = "true"
                  >
              </div>
              </div>
               <div class="form-group">
              <label class="col-sm-2 control-label" 
              for={{ele.id}}>正文
              </label>
              <div class="col-sm-10">                   
                  <textarea type="text" class="form-control" 
                  ng-model="item.thirdname" 
                  ng-required = "true"
                  style="max-width: 100% ; height: 80px"
                  >
                  </textarea>
              </div>
              </div>
              <div class="form-group">
              <button class="btn m-b-xs w-xs btn-success btn-rounded pull-right" ng-click="sub(index)">删除</button>
              </div>
              </div>

               <label class=" control-label"  style="position:absolute ;width: 150px"
              for={{ele.id}}>产品经理推荐 
              </label>
              <div class="form-group">
               <div class="col-sm-10" ng-repeat="item in arr1" >
                  <label class=" control-label col-sm-2" 
                      for={{ele.id}}>
                  </label>
                <div class="col-sm-8" style="padding-left:0px">
                    <input type="text" class="form-control" placeholder="输入产品推荐语，每句话至多输入30个汉字"
                    ng-model="item.name"
                    style="width: 500px;margin-left: 35px;margin-top: 5px"
                    ng-required = "true"
                    >

                  </div>
                    <div  style=" width: 120%;margin-top: 10px;">
                     <i  style="color: blue; cursor:pointer;" ng-click="sub1($index)">删除</i>
                    </div>
                </div>
               
                <div class="form-group col-sm-10" style="margin-left: 230px;padding-left:0px">
                  <div class="col-sm-3">
                    注：最少2到3条，最多4条
                  </div>              
                  <div class="col-sm-2 " ng-click="add(1)" >
                      <i style="color: blue; cursor:pointer;" >增加一条</i>
                  </div>
                </div>
                </div>
          </div>
              
        <div ng-switch-default>

          <dlqform ></dlqform>

        </div>
      </div>

      <div class="line line-dashed b-b line-lg pull-in"
      ng-if="ele.show !== 'no'"
      ></div>
    </div>

    <div class="m-t m-b">

      <button type="submit" class="btn btn-default btn-rounded" 
      ng-click="gogogo()"
      >保存</button>

    </div>

  </form>
</div>